package com.liang.subject.infra.basic.service;

import com.liang.subject.infra.basic.entity.SubjectLabel;
import com.liang.subject.infra.basic.entity.SubjectMapping;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
* @author 29018
* @description 针对表【subject_mapping(题目分类关系表)】的数据库操作Service
* @createDate 2024-10-11 13:34:24
*/
public interface SubjectMappingService extends IService<SubjectMapping> {

    /**
     * 根据分类查询标签
     */
    List<SubjectLabel> getLabelListByCategoryId(Long categoryId);

    /**
     * 根据题目查询标签
     */
    List<SubjectLabel> getLabelListBySubjectId(Long subjectId);
}
